package com.qdu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.Term;
import com.qdu.mapper.TermMapper;
import com.qdu.service.TermService;
@Service
public class TermServiceImpl implements TermService{
	@Autowired
	TermMapper TermMapper;

	@Override
	public Term selectTermById(int id) {
		return TermMapper.selectTermById(id);
	}

	@Override
	public boolean addTerm(Term Term) {
		return TermMapper.addTerm(Term);
	}

	@Override
	public boolean modifyTerm(Term Term) {
		return TermMapper.modifyTerm(Term);
	}

	@Override
	public boolean deleteTermById(int id) {
		return TermMapper.deleteTermById(id);
	}

	@Override
	public List<Term> selectAllTerm() {
		return TermMapper.selectAllTerm();
	}

	@Override
	public List<Term> selectTermBytyear(int tyear) {
		return TermMapper.selectTermBytyear(tyear);
	}

	@Override
	public List<Integer> selectAllTyear() {
		return TermMapper.selectAllTyear();
	}

	@Override
	public List<Term> selectCertainTermBytyear(int tyear) {
		return TermMapper.selectCertainTermBytyear(tyear);
	}
	
	
}
